package design.pattern.structural.facade;

public class Test {
    public static void main(String[] args) {

        GeneralSwitchFacade generalSwitchFacade = new GeneralSwitchFacade(
                new Fan(),
                new Light[]{new Light(1),
                        new Light(2),
                        new Light(3),
                        new Light(4)},
                new AirConditioner(),
                new Television());

        generalSwitchFacade.on();
        System.out.println("====================================");
        generalSwitchFacade.off();


    }
}
